package com.example.growthmuseum.daos;

import com.example.growthmuseum.models.Goods;
import com.example.growthmuseum.models.Result;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Roman on 2016/10/29.
 */
public interface IGoodsDao {
    Integer addGoods(Goods goods);

    List<Goods> getGoodsListByUserId(@Param("userId") Integer userId);

    List<Goods> getGoodsList();

    Goods getGoodsById(@Param("id") Integer id);

    Integer updateGoods(@Param("goods") Goods goods);
}
